import request from '@/utils/request'

// 查询货车信息列表
export function listTruckDriver(query) {
  return request({
    url: '/business/truckDriver/list',
    method: 'get',
    params: query
  })
}

// 查询货车信息所有列表
export function listAllTruckDriver(query) {
  return request({
    url: '/business/truckDriver/listAll',
    method: 'get',
    params: query
  })
}

// 查询货车信息详细
export function getTruckDriver(id) {
  return request({
    url: '/business/truckDriver/getInfo/' + id,
    method: 'get'
  })
}

// 新增货车信息
export function addTruckDriver(data) {
  return request({
    url: '/business/truckDriver/add',
    method: 'post',
    data: data
  })
}

// 修改货车信息
export function updateTruckDriver(data) {
  return request({
    url: '/business/truckDriver/edit',
    method: 'post',
    data: data
  })
}

// 删除货车信息
export function delTruckDriver(id) {
  return request({
    url: '/business/truckDriver/remove/' + id,
    method: 'get'
  })
}